<template>
    <div>
         <el-button type="info" @click="back">退出</el-button>
    </div>
    
</template>

<script>

export default {
    methods:{
        back(){
            window.sessionStorage.clear()
            this.$router.push('/login')
            this.$message.success('退出成功')
        }
    }

}
</script>

<style lang="less" scoped>

</style>

